package com.nmc.model;

import java.io.Serializable;


import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;


/** @author Hibernate CodeGenerator */
public class User implements Serializable{

	public String getId() {
		return userId;
	}

	/** identifier field */
	private String userId;

	/** persistent field */
	private String emailAddress;

	/** nullable persistent field */
	private String firstName;

	/** nullable persistent field */
	private String lastName;

	/** persistent field */
	private String password;

	private String enabled;

	/** full constructor */
	public User(String userId, String emailAddress, String firstName,
			String lastName, String password, String enabled) {
		this.userId = userId;
		this.emailAddress = emailAddress;
		this.firstName = firstName;
		this.lastName = lastName;
		this.password = password;
		this.enabled = enabled;
	}

	/** default constructor */
	public User() {
	}

	/** minimal constructor */
	public User(String userId, String emailAddress, String password,
			String enabled) {
		this.userId = userId;
		this.emailAddress = emailAddress;
		this.password = password;
		this.enabled = enabled;
	}

	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getEmailAddress() {
		return this.emailAddress;
	}

	public void setEmailAddress(String emailAddress) {
		this.emailAddress = emailAddress;
	}

	public String getFirstName() {
		return this.firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return this.lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getEnabled() {
		return this.enabled;
	}

	public void setEnabled(String enabled) {
		this.enabled = enabled;
	}

	public String toString() {
//		return new ToStringBuilder(this).append("userId", getUserId())
//				.toString();
		return ToStringBuilder.reflectionToString(this,
				ToStringStyle.MULTI_LINE_STYLE);
	}

}
